package com.baosight.risk.mapper.riwa;

import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.service.riwa.entity.RiwaRiskWaring;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RiwaRiskWaringMapper extends BaseMapper<RiwaRiskWaring> {
    /**
     * 根据披露报告查询所有预警模型
     *
     * @param importReportGuid
     * @return
     */
    List<RiwaRiskWaring> getWaringByImportId(@Param("importReportGuid") String importReportGuid);

    /**
     * 根据披露报告删除所有预警模型
     *
     * @param importReportGuid
     * @return
     */
    Integer deleteByImportId(@Param("importReportGuid") String importReportGuid);

    /**
     * 根据重点风险查询出风险模型
     */
    RiwaRiskWaring getRiwaByImportId(@Param("importId") String importId);
}